package com.example.exp6_4;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {
    private EditText input;
    private Button enter;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    public void initView(){
        input=(EditText)findViewById(R.id.Numbers);
        enter=(Button)findViewById(R.id.Enter);
    }

    public void Start(View view) {
        Intent intent=new Intent(MainActivity.this,Second.class);
        intent.putExtra("message",input.getText().toString());
        startActivity(intent);
    }
}
